package com.IC.base.service.impl;


import com.IC.base.mapper.AdministrativieDivisionMapper;
import com.IC.domain.Division;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.IC.domain.po.AdministrativeDivisionPO;
import com.IC.base.service.AdministrativeDivisionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdministrativeDivisionServiceImpl extends ServiceImpl<AdministrativieDivisionMapper, AdministrativeDivisionPO> implements AdministrativeDivisionService {

    @Autowired
    private AdministrativieDivisionMapper administrativeDivisionMapper;

    @Override
    public List<AdministrativeDivisionPO> findlist(String name, String divisionCode) {
        List<AdministrativeDivisionPO> findlist = administrativeDivisionMapper.findlist(name, divisionCode);
        return findlist;
    }

    @Override
    public void add(Division division) {
        administrativeDivisionMapper.add(division);
    }

    @Override
    public void updByid(Division division) {
        administrativeDivisionMapper.updByid(division);
    }
}
